<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>竣工验收</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Cache-Control" content="no-siteapp,no-transform,no-store, no-cache, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/weadmin.css">
    <script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
    <!--<script type="text/javascript" src="/templates/act/process-xl.js"></script>-->
    <style>
        .content {
            position: relative;
        }

        .btnBox {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 1000;
        }
    </style>
</head>
<body>
<div class="content" id="view">

</div>
<script src="/static/js/main.js"></script>
<script type="text/javascript">
    layui.use(['configureCom', 'configure', 'bluebird', 'baseTab', 'sessionFun', 'jquery', 'process'], function () {
        var configure = layui.configure;
        var configureCom = layui.configureCom;
        var baseTab = layui.baseTab;
        var sessionFun = layui.sessionFun;
        var process = layui.process;
        var $ = layui.jquery;
        var token = sessionFun.get(configure.SESSION_TOKEN) ? sessionFun.get(configure.SESSION_TOKEN).token : '';

        // 流程待办信息
        var procWaitDealRowData = sessionFun.get(configure.SESSION_PROC_WAIT_DEAL_ROW_DATA);

        // 申请记录查看详情或修改
        var completionRowData = sessionFun.get(configure.COMPLETION_ROW_DATA);

        // 流程待办进入才会有
        var cptAcceptanceId = sessionFun.get('cptAcceptanceId');
        console.log("cptAcceptanceId:::::::::::::::::::::"+cptAcceptanceId);

//        /***
//         * sessionFun.set('baseData',{ prjId: data.businessId });
//         * baseData 放进去的是 项目 ID
//         */
//        var prjId = sessionFun.get( 'prjId' );
//        var project  = null;
//        configureCom.getAjax(configure.PRJ_PROJECT_VIEW_API,{ prjId:prjId } ).then(function(res){
//            project = res.data;
//            sessionFun.set( 'PRJ_PROJECT_ENTITY' ,project);
//        })



        var tasks = {};
        // 建设 - 工程竣工验收监督申请
        var jgysjdsq = {

            tabData :{
                btns: [
                    {name: '保存', event: 'save'},
                    {name: '保存并提交', event: 'submit'},
                    {name: '关闭', event: 'close'}
                ],
                tabList: [
                    { title: '项目信息', url: configure.UNIT_PROJECT_PROHIBITED_DETAIL_HTML},
                    { title: '竣工验收监督申请', url:'/pages/completion/completion-jdsq.html'}
                ]
            },

            save: function(){
                configureCom.getData(1).then(function (res) {
                    configureCom.postAjax(configure.CPT_ACCEPTANCE_SAVE_API, res.result).then(function (res) {
                        top.layer.msg('保存成功！');
                    })
                });
            },

            submit: function() {
                configureCom.getData(1).then(function (res) {
                    top.layer.msg('保存成功！');
                    configureCom.postAjax(configure.CPT_ACCEPTANCE_SAVE_API, res.result).then(function (res) {
                        var cptAcceptance = res.cptAcceptance;
                        console.log(cptAcceptance);
                        process.startProcess({
                            "title": "竣工验收监督申请-" + cptAcceptance.prjName,
                            "businessId": cptAcceptance.id,
                            "procDefKey": 'JGYS'
                        });
                    })
                });

            },

            init: function(){
                //如果是记录页面进入, 直接判断状态不是0 不能修改
                if(completionRowData && completionRowData.status!=0){
                    this.tabData.btns = [
                        {name: '关闭', event: 'close'}
                    ];
                }//如果是申请记录页面进来, 并且状态不是0 不允许修改
                else if(cptAcceptanceId){
                    var data1 = $.extend({cptAcceptanceId:cptAcceptanceId}, {token: token});
                    var res = null;
                    $.ajax({
                        url: configure.COMPLETION_DETAIL_INFO,
                        type: 'get',
                        cache: false,
                        async:false,
                        data: data1,
                        dataType: 'json',
                        success: function (data) {
                            res = data;
                            layer.closeAll('loading');
                        },
                        error: function (data) {
                            layer.closeAll('loading');
                        }
                    });

                    //查询竣工验收详情, 并判断状态, 是否显示保存按钮
                    //其他的按钮逻辑放到对应的init方法实现
                    if(res && res.data){
                        var status = res.data.status;
                        if(0!=status){
                            this.tabData.btns = [
                                {name: '关闭', event: 'close'}
                            ];
                        }
                    }else{
                        console.log("未找到竣工验收申请记录ID" +cptAcceptanceId);
                        sessionFun.set( 'CPT_STATUS' ,"");
                    }
                }

                baseTab.init(this.tabData, 1);
                form.on('submit', function (data) {
                    var event = $(data.elem).attr('lay-event');
                    switch (event) {
                        case 'save':
                            jgysjdsq.save();
                            break;
                        case 'submit':
                            jgysjdsq.submit();
                            break;
                    }
                    return false;
                });
            }
        };

        // 监管 - 竣工验收条件核查
        var jgysjdtjhc = {

            tabData :{
                btns: [
                    {name: '保存', event: 'save'},
                    {name: '保存并提交', event: 'submit'},
                    {name: '关闭', event: 'close'}
                ],
                tabList: [
                    { title: '项目信息', url: configure.UNIT_PROJECT_PROHIBITED_DETAIL_HTML},
                    { title: '竣工验收监督申请', url:'/pages/completion/completion-jdsq.html'},
                    { title: '竣工验收监督条件核查', url:'/pages/completion/completion-jdtjhc.html'}
                ]
            },

            save: function(){
                configureCom.getData(2).then(function (res) {
                    configureCom.postAjax(configure.CPT_ACCEPTANCE_CONDITION_SAVE_API, res.result).then(function (res) {
                        top.layer.msg('保存成功！');
                    })
                });
            },

            submit: function() {
                configureCom.getData(2).then(function (res) {
                    configureCom.postAjax(configure.CPT_ACCEPTANCE_CONDITION_SAVE_API, res.result).then(function (res) {
                        process.next({
                            "taskId": procWaitDealRowData.id,
                            "poId": procWaitDealRowData.poId
                        });
                    })
                });

            },

            init: function(){
                //如果是记录页面进入不能修改
                if(completionRowData){
                    this.tabData.btns = [
                        {name: '关闭', event: 'close'}
                    ];
                }//如果是申请记录页面进来, 并且状态不是0 不允许修改
                else if(cptAcceptanceId){
                    var data1 = $.extend({cptAcceptanceId:cptAcceptanceId}, {token: token});
                    var res = null;
                    $.ajax({
                        url: configure.COMPLETION_DETAIL_INFO,
                        type: 'get',
                        cache: false,
                        async:false,
                        data: data1,
                        dataType: 'json',
                        success: function (data) {
                            layer.closeAll('loading');
                            res = data;
                        },
                        error: function (data) {
                            layer.closeAll('loading');
                        }
                    });

                    //查询竣工验收详情, 并判断状态, 是否显示保存按钮
                    //其他的按钮逻辑放到对应的init方法实现
                    if(res && res.data){
                        var status = res.data.status;
                        sessionFun.set( 'CPT_STATUS' ,status);
                        if(1!=status){
                            this.tabData.btns = [
                                {name: '关闭', event: 'close'}
                            ];
                        }
                    }else{
                        console.log("未找到竣工验收申请记录ID" +cptAcceptanceId);
                        sessionFun.set( 'CPT_STATUS' ,"");
                    }
                }

                baseTab.init(this.tabData, 2);
                form.on('submit', function (data) {
                    var event = $(data.elem).attr('lay-event');
                    switch (event) {
                        case 'save':
                            jgysjdtjhc.save();
                            break;
                        case 'submit':
                            jgysjdtjhc.submit();
                            break;
                    }
                    return false;
                });
            }
        };


        // 监管 - 竣工验收监督
        var jgysjd = {
            tabData :{
                btns: [
                    {name: '保存', event: 'save'},
                    {name: '保存并提交', event: 'submit'},
                    {name: '关闭', event: 'close'}
                ],
                tabList: [
                    { title: '项目信息', url: configure.UNIT_PROJECT_PROHIBITED_DETAIL_HTML},
                    { title: '竣工验收监督申请', url:'/pages/completion/completion-jdsq.html'},
                    { title: '竣工验收监督条件核查', url:'/pages/completion/completion-jdtjhc.html'},
                    { title: '竣工验收监督', url:'/pages/completion/completion-jd.html'},
                ]
            },

            save: function(){
                configureCom.getData(3).then(function (res) {
                    configureCom.postAjax(configure.CPT_ACCEPTANCE_SUPERVISE_SAVE_API, res.result).then(function (res) {
                        top.layer.msg('保存成功！');
                    })
                });
            },

            submit: function() {
                configureCom.getData(3).then(function (res) {
                    configureCom.postAjax(configure.CPT_ACCEPTANCE_SUPERVISE_SAVE_API, res.result).then(function (res) {
                        process.next({
                            "taskId": procWaitDealRowData.id,
                            "poId": procWaitDealRowData.poId
                        });
                    })
                });

            },

            init: function(){
                //如果是记录页面进入不能修改
                if(completionRowData){
                    this.tabData.btns = [
                        {name: '关闭', event: 'close'}
                    ];
                }//如果是申请记录页面进来, 并且状态不是2 不允许修改
                else if(cptAcceptanceId){
                    var data1 = $.extend({cptAcceptanceId:cptAcceptanceId}, {token: token});
                    var res = null;
                    $.ajax({
                        url: configure.COMPLETION_DETAIL_INFO,
                        type: 'get',
                        cache: false,
                        async:false,
                        data: data1,
                        dataType: 'json',
                        success: function (data) {
                            layer.closeAll('loading');
                            res = data;
                        },
                        error: function (data) {
                            layer.closeAll('loading');
                        }
                    });

                    //查询竣工验收详情, 并判断状态, 是否显示保存按钮
                    if(res && res.data){
                        var status = res.data.status;
                        sessionFun.set( 'CPT_STATUS' ,status);
                        if(2!=status){
                            this.tabData.btns = [
                                {name: '关闭', event: 'close'}
                            ];
                        }
                    }else{
                        console.log("未找到竣工验收申请记录ID" +cptAcceptanceId);
                        sessionFun.set( 'CPT_STATUS' ,"");
                    }
                }
                baseTab.init(this.tabData, 3);
                form.on('submit', function (data) {
                    var event = $(data.elem).attr('lay-event');
                    switch (event) {
                        case 'save':
                            jgysjd.save();
                            break;
                        case 'submit':
                            jgysjd.submit();
                            break;
                    }
                    return false;
                });
            }
        };


        // 编写竣工验收情况
        var bxjgysqk = {

            tabData :{
                btns: [
                    {name: '保存', event: 'save'},
                    {name: '保存并提交', event: 'submit'},
                    {name: '关闭', event: 'close'}
                ],
                tabList: [
                    { title: '项目信息', url: configure.UNIT_PROJECT_PROHIBITED_DETAIL_HTML},
                    { title: '竣工验收监督申请', url:'/pages/completion/completion-jdsq.html'},
                    { title: '竣工验收监督条件核查', url:'/pages/completion/completion-jdtjhc.html'},
                    { title: '竣工验收监督', url:'/pages/completion/completion-jd.html'},
                    { title: '编写竣工验收情况', url:'/pages/completion/completion-bxjgysqk.html'}
                ]
            },

            save: function(){
                configureCom.getData(4).then(function (res) {
                    configureCom.postAjax(configure.CPT_ACCEPTANCE_CONCLUSION_SAVE_API, res.result).then(function (res) {
                        top.layer.msg('保存成功！');
                    })
                });
            },

            submit: function() {
                configureCom.getData(4).then(function (res) {
                    configureCom.postAjax(configure.CPT_ACCEPTANCE_CONCLUSION_SAVE_API, res.result).then(function (res) {
                        process.next({
                            "taskId": procWaitDealRowData.id,
                            "poId": procWaitDealRowData.poId
                        });
                    })
                });
            },

            init: function(){
                //如果是记录页面进入不能修改
                if(completionRowData){
                    this.tabData.btns = [
                        {name: '关闭', event: 'close'}
                    ];
                }//如果是申请记录页面进来, 并且状态不是3 不允许修改
                else if(cptAcceptanceId){
                    var data1 = $.extend({cptAcceptanceId:cptAcceptanceId}, {token: token});
                    var res = null;
                    $.ajax({
                        url: configure.COMPLETION_DETAIL_INFO,
                        type: 'get',
                        cache: false,
                        async:false,
                        data: data1,
                        dataType: 'json',
                        success: function (data) {
                            layer.closeAll('loading');
                            res = data;
                        },
                        error: function (data) {
                            layer.closeAll('loading');
                        }
                    });

                    //查询竣工验收详情, 并判断状态, 是否显示保存按钮
                    if(res && res.data){
                        var status = res.data.status;
                        sessionFun.set( 'CPT_STATUS' ,status);
                        if(3!=status){
                            this.tabData.btns = [
                                {name: '关闭', event: 'close'}
                            ];
                        }
                    }else{
                        console.log("未找到竣工验收申请记录ID" +cptAcceptanceId);
                        sessionFun.set( 'CPT_STATUS' ,"");
                    }
                }
                baseTab.init(this.tabData, 4);
                form.on('submit', function (data) {
                    var event = $(data.elem).attr('lay-event');
                    switch (event) {
                        case 'save':
                            bxjgysqk.save();
                            break;
                        case 'submit':
                            bxjgysqk.submit();
                            break;
                    }
                    return false;
                });
            }
        };


        // 编写工程质量监督报告
        var bxjgysjdbg = {

            tabData :{
                btns: [
                    {name: '保存', event: 'save'},
                    {name: '保存并提交', event: 'submit'},
                    {name: '关闭', event: 'close'}
                ],
                tabList: [
                    { title: '项目信息', url: configure.UNIT_PROJECT_PROHIBITED_DETAIL_HTML},
                    { title: '竣工验收监督申请', url:'/pages/completion/completion-jdsq.html'},
                    { title: '竣工验收监督条件核查', url:'/pages/completion/completion-jdtjhc.html'},
                    { title: '竣工验收监督', url:'/pages/completion/completion-jd.html'},
                    { title: '编写竣工验收情况', url:'/pages/completion/completion-bxjgysqk.html'},
                    { title: '编写工程质量监督报告', url:'/pages/completion/completion-bxjgysjdbg.html'}
                ]
            },

            save: function(){
                configureCom.getData(5).then(function (res) {
                    configureCom.postAjax(configure.CPT_ACCEPTANCE_SUPERVISE_REPORT_SAVE_API, res.result).then(function (res) {
                        top.layer.msg('保存成功！');
                    })
                });
            },

            submit: function() {
                configureCom.getData(5).then(function (res) {
                    configureCom.postAjax(configure.CPT_ACCEPTANCE_SUPERVISE_REPORT_SAVE_API, res.result).then(function (res) {
                        process.next({
                            "taskId": procWaitDealRowData.id,
                            "poId": procWaitDealRowData.poId
                        });
                    })
                });

            },

            init: function(){
                //如果是记录页面进入不能修改
                if(completionRowData){
                    this.tabData.btns = [
                        {name: '关闭', event: 'close'}
                    ];
                }
                else if(cptAcceptanceId){
                    var data1 = $.extend({cptAcceptanceId:cptAcceptanceId}, {token: token});
                    var res = null;
                    $.ajax({
                        url: configure.COMPLETION_DETAIL_INFO,
                        type: 'get',
                        cache: false,
                        async:false,
                        data: data1,
                        dataType: 'json',
                        success: function (data) {
                            layer.closeAll('loading');
                            res = data;
                        },
                        error: function (data) {
                            layer.closeAll('loading');
                        }
                    });
                    //如果是申请记录页面进来, 并且状态不是4 不允许修改
                    if(res && res.data){
                        var status = res.data.status;
                        sessionFun.set( 'CPT_STATUS' ,status);
                        if(4!=status){
                            this.tabData.btns = [
                                {name: '关闭', event: 'close'}
                            ];
                        }
                    }else{
                        console.log("未找到竣工验收申请记录ID" +cptAcceptanceId);
                        sessionFun.set( 'CPT_STATUS' ,"");
                    }
                }
                baseTab.init(this.tabData, 5);
                form.on('submit', function (data) {
                    var event = $(data.elem).attr('lay-event');
                    switch (event) {
                        case 'save':
                            bxjgysjdbg.save();
                            break;
                        case 'submit':
                            bxjgysjdbg.submit();
                            break;
                    }
                    return false;
                });
            }
        };

        // 工程质量监督报告盖章
        var jgysjdbggz = {
            tabData :{
                btns: [
                    {name: '保存', event: 'save'},
                    {name: '保存并提交', event: 'submit'},
                    {name: '关闭', event: 'close'}
                ],
                tabList: [
                    { title: '项目信息', url: configure.UNIT_PROJECT_PROHIBITED_DETAIL_HTML},
                    { title: '竣工验收监督申请', url:'/pages/completion/completion-jdsq.html'},
                    { title: '竣工验收监督条件核查', url:'/pages/completion/completion-jdtjhc.html'},
                    { title: '竣工验收监督', url:'/pages/completion/completion-jd.html'},
                    { title: '编写竣工验收情况', url:'/pages/completion/completion-bxjgysqk.html'},
                    { title: '编写工程质量监督报告', url:'/pages/completion/completion-bxjgysjdbg.html'},
                    { title: '工程质量监督报告盖章', url:'/pages/completion/completion-jgysjdbggz.html'}
                ]
            },

            save: function(){
                configureCom.getData(6).then(function (res) {
                    configureCom.postAjax(configure.CPT_ACCEPTANCE_SUPERVISE_REPORT_STAMP_SAVE_API, res.result).then(function (res) {
                        top.layer.msg('保存成功！');
                    })
                });
            },

            submit: function() {
                configureCom.getData(6).then(function (res) {
                    configureCom.postAjax(configure.CPT_ACCEPTANCE_SUPERVISE_REPORT_STAMP_SAVE_API, res.result).then(function (res) {
                        process.next({
                            "taskId": procWaitDealRowData.id,
                            "poId": procWaitDealRowData.poId
                        });
                    })
                });

            },

            init: function(){
                //如果是记录页面进入, 不能修改
                if(completionRowData){
                    this.tabData.btns = [
                        {name: '关闭', event: 'close'}
                    ];
                }
                else if(cptAcceptanceId){
                    var data1 = $.extend({cptAcceptanceId:cptAcceptanceId}, {token: token});
                    var res = null;
                    $.ajax({
                        url: configure.COMPLETION_DETAIL_INFO,
                        type: 'get',
                        cache: false,
                        async:false,
                        data: data1,
                        dataType: 'json',
                        success: function (data) {
                            layer.closeAll('loading');
                            res = data;
                        },
                        error: function (data) {
                            layer.closeAll('loading');
                        }
                    });
                    //如果是审批页面进入, 判断状态不是5 不能修改
                    if(res && res.data){
                        var status = res.data.status;
                        sessionFun.set( 'CPT_STATUS' ,status);
                        if(5!=status){
                            this.tabData.btns = [
                                {name: '关闭', event: 'close'}
                            ];
                        }
                    }else{
                        console.log("未找到竣工验收申请记录ID" +cptAcceptanceId);
                        sessionFun.set( 'CPT_STATUS' ,"");
                    }
                }
                //初始化显示第6个页签
                baseTab.init(this.tabData, 6);
                form.on('submit', function (data) {
                    var event = $(data.elem).attr('lay-event');
                    switch (event) {
                        case 'save':
                            jgysjdbggz.save();
                            break;
                        case 'submit':
                            jgysjdbggz.submit();
                            break;
                    }
                    return false;
                });
            }
        };

        // 编写竣工验收报告
        var bxjgysbg = {
            tabData :{
                btns: [
                    {name: '保存', event: 'save'},
                    {name: '保存并提交', event: 'submit'},
                    {name: '关闭', event: 'close'}
                ],
                tabList: [
                    { title: '项目信息', url: configure.UNIT_PROJECT_PROHIBITED_DETAIL_HTML},
                    { title: '竣工验收监督申请', url:'/pages/completion/completion-jdsq.html'},
                    { title: '竣工验收监督条件核查', url:'/pages/completion/completion-jdtjhc.html'},
                    { title: '竣工验收监督', url:'/pages/completion/completion-jd.html'},
                    { title: '编写竣工验收情况', url:'/pages/completion/completion-bxjgysqk.html'},
                    { title: '编写工程质量监督报告', url:'/pages/completion/completion-bxjgysjdbg.html'},
                    { title: '工程质量监督报告盖章', url:'/pages/completion/completion-jgysjdbggz.html'},
                    { title: '编写竣工验收报告', url:'/pages/completion/completion-bxjgysbg.html'}
                ]
            },

            save: function(){
                configureCom.getData(7).then(function (res) {
                    configureCom.postAjax(configure.CPT_ACCEPTANCE_CONDITION_REPORT_SAVE_API, res.result).then(function (res) {
                        top.layer.msg('保存成功！');
                    })
                });
            },

            submit: function() {
                configureCom.getData(7).then(function (res) {
                    configureCom.postAjax(configure.CPT_ACCEPTANCE_CONDITION_REPORT_SAVE_API, res.result).then(function (res) {
                        process.next({
                            "taskId": procWaitDealRowData.id,
                            "poId": procWaitDealRowData.poId
                        });
                    })
                });

            },

            init: function(){
                //如果是记录页面进入不能修改
                if(completionRowData){
                    this.tabData.btns = [
                        {name: '关闭', event: 'close'}
                    ];
                }
                else if(cptAcceptanceId){
                    var data1 = $.extend({cptAcceptanceId:cptAcceptanceId}, {token: token});
                    var res = null;
                    $.ajax({
                        url: configure.COMPLETION_DETAIL_INFO,
                        type: 'get',
                        cache: false,
                        async:false,
                        data: data1,
                        dataType: 'json',
                        success: function (data) {
                            layer.closeAll('loading');
                            res = data;
                        },
                        error: function (data) {
                            layer.closeAll('loading');
                        }
                    });
                    //如果是审批页面进入, 判断状态不是5 不能修改
                    if(res && res.data){
                        var status = res.data.status;
                        sessionFun.set( 'CPT_STATUS' ,status);
                        if(6!=status){
                            this.tabData.btns = [
                                {name: '关闭', event: 'close'}
                            ];
                        }
                    }else{
                        console.log("未找到竣工验收申请记录ID" +cptAcceptanceId);
                        sessionFun.set( 'CPT_STATUS' ,"");
                    }
                }
                //初始化显示第7个页签
                baseTab.init(this.tabData, 7);
                form.on('submit', function (data) {
                    var event = $(data.elem).attr('lay-event');
                    switch (event) {
                        case 'save':
                            bxjgysbg.save();
                            break;
                        case 'submit':
                            bxjgysbg.submit();
                            break;
                    }
                    return false;
                });
            }
        };


        if(procWaitDealRowData!=null){
            var taskDefKey =  procWaitDealRowData.taskDefKey;
            if(taskDefKey === 'jgysjdtjhc' ){
                jgysjdtjhc.init();
            }else if(taskDefKey === 'jgysjd'){
                jgysjd.init();
            }else if(taskDefKey === 'bxjgysqk'){
                bxjgysqk.init();
            }else if(taskDefKey === 'bxjgysjdbg'){
                bxjgysjdbg.init();
            }else if(taskDefKey === 'jggz'){
                jgysjdbggz.init();
            }else if(taskDefKey === 'bxjgysbg'){
                bxjgysbg.init();
            }

        }else if(null != completionRowData){
            var res1 = null;
            var data1 = $.extend({cptAcceptanceId:completionRowData.id}, {token: token});
            $.ajax({
                url: configure.COMPLETION_DETAIL_INFO,
                type: 'get',
                cache: false,
                async:false,
                data: data1,
                dataType: 'json',
                success: function (data) {
                    res1 = data;
                    layer.closeAll('loading');
                },
                error: function (data) {
                    layer.closeAll('loading');
                }
            });

            //查询竣工验收详情, 并判断状态, 是否显示保存按钮
            if(res1 && res1.data){
                var status = res1.data.status;
                if(status == '1' ){
                    jgysjdtjhc.init();
                }else if(status == '2'){
                    jgysjd.init();
                }else if(status == '3'){
                    bxjgysqk.init();
                }else if(status == '4'){
                    bxjgysjdbg.init();
                }else if(status == '5'){
                    jgysjdbggz.init();
                }else if(status == '6'){
                    bxjgysbg.init();
                }else if(status == '7'){
                    bxjgysbg.init();
                }else{
                    jgysjdsq.init();
                }
            }else{
                console.log("未找到竣工验收申请记录ID" +cptAcceptanceId);
            }
        }else{
            jgysjdsq.init();
        }

        sessionFun.remove(configure.SESSION_PROC_WAIT_DEAL_ROW_DATA);


    });


</script>
</body>
</html>